package com.atguigu.gmall.seckill.service;

import com.atguigu.gmall.common.result.ResultCodeEnum;
import com.atguigu.gmall.model.order.OrderInfo;

public interface SecKillService {
    //生成秒杀码
    String getSeckillSkuIdStr(Long skuId);

    void ajaxSeckillOrder(Long skuId, String skuIdStr) throws InterruptedException;

    ResultCodeEnum checkSeckillOrder(Long skuId);
    //从redis中拿临时订单
    OrderInfo getSecKillOrderInfoFromRedis(Long skuId);
}
